package admin

type Admin struct {
	Id       int
	Account  string
	Nickname string
	Password string
	Status   int
	Ctime    int
	Utime    int
	Role     []*Role `gorm:"many2many:admin_role"`
}

//定义结构体 对应的数据表
func (Admin) TableName() string {
	return "admin"
}
